The motion of sound waves in a compressible medium is described by the wave equation

2u -1c2 2u t2 =0

where c designates the speed of sound in the medium. For sound waves that depend on a single spatial variable, the Laplacian operator is

2 =1r n-1 r (r n-1 r) =2 r2 +(n-1) r r

where n is the dimension of the spatial symmetry determining the geometry of the sound waves, and the same variable r is used across different dimensionalities for convenience.

Sound waves whose geometry is determined by a single dimension, plane waves, obey the wave equation

2u r2 -1c2 2u t2 =0

If the partial differential operator in this equation is factored

(r +1c t) (r -1c t) u =0

then one can see that the first factor annihilates any function with an argument of r-ct , while the second annihilates any function with an argument of r+ct . This means that the general solution to this equation, expressed in terms of arbitrary functions, is

u(r,t) =f1 (r-ct) +f2 (r+ct)

Each of these arbitrary functions satisfies the differential equation on its own, independent of the other.

Visualizations in this presentation will represent sound waves of a single frequency, called oddly enough monochromatic waves, which are described by sines and cosines. Since the argument of a circular function must be dimensionless, the monochromatic solution for plane waves will be taken to be

umono (r,t) =sin[ω (rc ±t)] =sin(kr ±ωt)

where ω is the frequency and k=ω/c is the wave number. The sign chosen in the argument determines the direction of movement of the waves.

Visualizations are implemented in WebGL using the Three.js JavaScript library written by the renowned Mr. Doob and others. The code common to the setup of scenes is segregated at the beginning of this document for ease of common adjustments and modifications. The mathematical code for each individual geometric arrangement is contained in the div element where the visualization appears so that it is relatively close to its statement in mathematical notation.

Now for the fun! Start with a plane wave moving on a two-dimensional lattice of atoms:

The magic of Three.js is that it takes only a little more code to show the same motion in three dimensions. Here is a plane wave moving on a three-dimensional lattice of atoms:

The graphic can be rotated in any direction by left clicking and dragging the cursor. Zooming in and out is done with a mouse wheel or the usual pinching motion on a touchpad or touchscreen. The graphic can also be panned by right clicking and dragging, or reset by reloading the page. Rotation and panning have been explicitly disabled for two-dimensional graphics.

Regular lattices have been shown first to help make clear that the atoms themselves vibrate about their initial positions and do not move with the wave. The same applies to a random distribution of components of the medium, as for example air molecules. Here is a plane wave moving through a two-dimensional random distribution of molecules,

and here is a plane wave moving through a three-dimensional random distribution of molecules:


Sound waves whose geometry is determined by two dimensions, cylindrical waves, are considerably more mathematically complicated that plane waves. They obey the wave equation

2u r2 +1r u r -1c2 2u t2 =0

This wave equation does not have a simple general solution, and particular solutions have a logarithmic singularity at the origin arising from the symmetry of the system. To avoid these complications, first make the substitution u=f (r,t) r  , under which the equation becomes

2f r2 +f 4r2 -1c2 2f t2 =0

If the function f(r,t) is limited in value, then the middle term in this equation becomes progressively smaller moving outward from the origin. Far from the origin one can make the approximation

2f r2 -1c2 2f t2 0

which is the wave equation for plane waves. Cylindrical waves have an approximate general solution, expressed in terms of arbitrary functions, of

u(r,t) f1 (r-ct) r +f2 (r+ct) r

The monochromatic solution for cylindrical sound waves will be taken to be

umono (r,t) =sin(kr ±ωt) r

The same JavaScript code can be used again with a change in the calculation of displacements from initial positions. Here is a cylindrical wave moving on a two-dimensional lattice of atoms:

The amplitude at the origin has been exaggerated to compensate for the radial weakening of the wave. Here is a cylindrical wave moving on a three-dimensional lattice of atoms:

Rotate this graphic to either side to see the wave emanating from the axis of symmetry.

As before regular lattices are shown first to emphasize that the components of the medium do not move with the wave. Now here is a cylindrical wave moving through a two-dimensional random distribution of molecules,

and here is a cylindrical wave moving through a three-dimensional random distribution of molecules:


Sound waves whose geometry is determined by three dimensions, spherical waves, are much simpler to describe than cylindrical waves. They obey the wave equation

2u r2 +2r u r -1c2 2u t2 =0

With the substitution u=f (r,t)r this equation becomes

2f r2 -1c2 2f t2 =0

which is the same equation as for plane waves. The general solution to the original equation, expressed in terms of arbitrary functions, is thus

u(r,t) =f1 (r-ct) r +f2 (r+ct) r

Another way to justify this solution is to note that the spatial part of the differential operator in the equation can be factored into a squared operator

2 r2 +2r r =( r +1r) (r +1r)

so that the wave equation can be written

(r +1r +1c t) (r +1r -1c t) u

and each of these factors annihilates a term in the general solution. This simple factorization only occurs for plane and spherical wave equations.

The monochromatic solution for spherical sound waves will be taken to be

umono (r,t) =sin(kr ±ωt) r

Two-dimensional slices of spherical waves look the same as two-dimensional slices of cylindrical waves and will be omitted. With another change in the calculation of displacements from initial positions, here is a spherical wave moving on a three-dimensional lattice of atoms,

and here is a spherical wave moving through a three-dimensional random distribution of molecules:

Rotate both of these graphics in any direction to see that the wave emanates from the center of the cube. By definition it looks the same from any angle, apart from edge effects of the cube.

The mathematical description of sound waves can be carried to higher dimensions. Sound waves whose geometry is determined by an arbitrary number of dimensions obey the wave equation

2u r2 +n-1r u r -1c2 2u t2 =0

With the substitution u=f (r,t) r(n-1) /2 this equation becomes

2f r2 -(n-1) (n-3)f 4r2 -1c2 2f t2 =0

If the function f(r,t) is limited in value, then far from the origin one can make the approximation

2f r2 -1c2 2f t2 0

so that sound waves determined by an arbitrary number of dimensions have an approximate general solution, expressed in terms of arbitrary functions, of

u(r,t) f1 (r-ct) r(n-1) /2 +f2 (r+ct) r(n-1) /2

and the solution for monochromatic sound waves can be taken to be

umono (r,t) =sin(kr ±ωt) r(n-1) /2

Then one needs to wait for Four.js and its higher-dimensional successors to attempt visualizations.


Uploaded 2015.05.30 — Updated 2016.01.10 analyticphysics.com